#include<iostream>
#include<string>
using namespace std;

int main(){
    string sumstr,str;
    cout<<"Enter strings(Ctrl+Z to end):"<<endl;
    while(cin>>str)
      sumstr += ' '+str;
    cout<<"string equal to the concatenation of these strings is:"<<endl<<sumstr<<endl;
    return 0;
}
